#ifndef QMYLINEEDIT_H
#define QMYLINEEDIT_H

#include "../../lib/shared/qobjecthost.h"

#include <QLineEdit>

class QLineEditHost: public QObjectHost
{
    Q_OBJECT
public:
    QLineEditHost(QWidget* wid);
public slots:
    QString text();
signals:
    void    setText(const QString& text);
    void    selectAll();
    void    clear();
};

class QMyLineEdit :public QLineEdit
{
    Q_OBJECT
public:
    QMyLineEdit(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    finishEditing();
    void    textChanged_signal();
    void    updatePropertyAttribute();
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost *m_host;
};

#endif // QMYLINEEDIT_H
